package com.amar.hibernate.domain;





import javax.persistence.Entity;
import javax.persistence.Table;



import org.springframework.security.authentication.encoding.Md5PasswordEncoder;
import org.springframework.security.authentication.encoding.PasswordEncoder;

import com.amar.hibernate.commons.domain.BaseEntity;
@Entity
@Table(name="students")
public class StudentEntity extends BaseEntity {

	private static final long serialVersionUID = -8870863003316878573L;
	private String firstName;
	private String lastName;
	private String userName;
	private String password;
	private String stdAddress;
	//private Date stdDob;
	private String stdCity;
	private String stdState;
	private long stdZipcode;
	private String stdCountry;
	private String stdRollNo;
	//private Date stdAdmissionYear;
	private String stdEmailId;
	private long stdLandLine;
	private long stdMobile;
	private String stdEntranceTest;
	private String stdCatagory;
	
	
	
	public String getFirstName() {
		return firstName;
	}
	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}
	public String getLastName() {
		return lastName;
	}
	public void setLastName(String lastName) {
		this.lastName = lastName;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		PasswordEncoder crypto = new Md5PasswordEncoder();
		this.password = crypto.encodePassword(password, null);
	}
	public String getStdAddress() {
		return stdAddress;
	}
	public void setStdAddress(String stdAddress) {
		this.stdAddress = stdAddress;
	}
	public String getStdCity() {
		return stdCity;
	}
	public void setStdCity(String stdCity) {
		this.stdCity = stdCity;
	}
	public String getStdState() {
		return stdState;
	}
	public void setStdState(String stdState) {
		this.stdState = stdState;
	}
	public long getStdZipcode() {
		return stdZipcode;
	}
	public void setStdZipcode(long stdZipcode) {
		this.stdZipcode = stdZipcode;
	}
	public String getStdCountry() {
		return stdCountry;
	}
	public void setStdCountry(String stdCountry) {
		this.stdCountry = stdCountry;
	}
	public String getStdRollNo() {
		return stdRollNo;
	}
	public void setStdRollNo(String stdRollNo) {
		this.stdRollNo = stdRollNo;
	}
	public String getStdEmailId() {
		return stdEmailId;
	}
	public void setStdEmailId(String stdEmailId) {
		this.stdEmailId = stdEmailId;
	}
	public long getStdLandLine() {
		return stdLandLine;
	}
	public void setStdLandLine(long stdLandLine) {
		this.stdLandLine = stdLandLine;
	}
	public long getStdMobile() {
		return stdMobile;
	}
	public void setStdMobile(long stdMobile) {
		this.stdMobile = stdMobile;
	}
	public String getStdEntranceTest() {
		return stdEntranceTest;
	}
	public void setStdEntranceTest(String stdEntranceTest) {
		this.stdEntranceTest = stdEntranceTest;
	}
	public String getStdCatagory() {
		return stdCatagory;
	}
	public void setStdCatagory(String stdCatagory) {
		this.stdCatagory = stdCatagory;
	}
	
	

}
